from kitool.YamlKit import read_yaml, find_by_path
from kitool.ImageKit import download

from kitool.ConfigKit import readConf, getValue

# result = read_yaml("test.yaml")
# print(type(result))
# data = find_by_path(result, "bat.aliyun.oss.url")
# print(data)
# print(result["user"]["name"])

# 下载
# download(
#     logid="7005313820362380641",
#     disk="E:/zzz/imgs",
#     count=10,
#     name="小狗"
# )

conf = readConf('config.ini')
value = getValue(conf, 'shiti_num', 'nums')
print(value)